package com.uplooking.pojo;

import java.util.ArrayList;
import java.util.List;

public class RoleVOExample {
	protected String orderByClause;

	protected boolean distinct;
	
	protected Integer start;

	protected Integer limit;

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}

	protected List<Criteria> oredCriteria;

	public RoleVOExample() {
		oredCriteria = new ArrayList<Criteria>();
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public String getOrderByClause() {
		return orderByClause;
	}

	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	public boolean isDistinct() {
		return distinct;
	}

	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}

		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		public Criteria andReidIsNull() {
			addCriterion("reid is null");
			return (Criteria) this;
		}

		public Criteria andReidIsNotNull() {
			addCriterion("reid is not null");
			return (Criteria) this;
		}

		public Criteria andReidEqualTo(Integer value) {
			addCriterion("reid =", value, "reid");
			return (Criteria) this;
		}

		public Criteria andReidNotEqualTo(Integer value) {
			addCriterion("reid <>", value, "reid");
			return (Criteria) this;
		}

		public Criteria andReidGreaterThan(Integer value) {
			addCriterion("reid >", value, "reid");
			return (Criteria) this;
		}

		public Criteria andReidGreaterThanOrEqualTo(Integer value) {
			addCriterion("reid >=", value, "reid");
			return (Criteria) this;
		}

		public Criteria andReidLessThan(Integer value) {
			addCriterion("reid <", value, "reid");
			return (Criteria) this;
		}

		public Criteria andReidLessThanOrEqualTo(Integer value) {
			addCriterion("reid <=", value, "reid");
			return (Criteria) this;
		}

		public Criteria andReidIn(List<Integer> values) {
			addCriterion("reid in", values, "reid");
			return (Criteria) this;
		}

		public Criteria andReidNotIn(List<Integer> values) {
			addCriterion("reid not in", values, "reid");
			return (Criteria) this;
		}

		public Criteria andReidBetween(Integer value1, Integer value2) {
			addCriterion("reid between", value1, value2, "reid");
			return (Criteria) this;
		}

		public Criteria andReidNotBetween(Integer value1, Integer value2) {
			addCriterion("reid not between", value1, value2, "reid");
			return (Criteria) this;
		}

		public Criteria andRenameIsNull() {
			addCriterion("rename is null");
			return (Criteria) this;
		}

		public Criteria andRenameIsNotNull() {
			addCriterion("rename is not null");
			return (Criteria) this;
		}

		public Criteria andRenameEqualTo(String value) {
			addCriterion("rename =", value, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameNotEqualTo(String value) {
			addCriterion("rename <>", value, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameGreaterThan(String value) {
			addCriterion("rename >", value, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameGreaterThanOrEqualTo(String value) {
			addCriterion("rename >=", value, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameLessThan(String value) {
			addCriterion("rename <", value, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameLessThanOrEqualTo(String value) {
			addCriterion("rename <=", value, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameLike(String value) {
			addCriterion("rename like", value, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameNotLike(String value) {
			addCriterion("rename not like", value, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameIn(List<String> values) {
			addCriterion("rename in", values, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameNotIn(List<String> values) {
			addCriterion("rename not in", values, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameBetween(String value1, String value2) {
			addCriterion("rename between", value1, value2, "rename");
			return (Criteria) this;
		}

		public Criteria andRenameNotBetween(String value1, String value2) {
			addCriterion("rename not between", value1, value2, "rename");
			return (Criteria) this;
		}

		public Criteria andRenamezhIsNull() {
			addCriterion("renamezh is null");
			return (Criteria) this;
		}

		public Criteria andRenamezhIsNotNull() {
			addCriterion("renamezh is not null");
			return (Criteria) this;
		}

		public Criteria andRenamezhEqualTo(String value) {
			addCriterion("renamezh =", value, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhNotEqualTo(String value) {
			addCriterion("renamezh <>", value, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhGreaterThan(String value) {
			addCriterion("renamezh >", value, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhGreaterThanOrEqualTo(String value) {
			addCriterion("renamezh >=", value, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhLessThan(String value) {
			addCriterion("renamezh <", value, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhLessThanOrEqualTo(String value) {
			addCriterion("renamezh <=", value, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhLike(String value) {
			addCriterion("renamezh like", value, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhNotLike(String value) {
			addCriterion("renamezh not like", value, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhIn(List<String> values) {
			addCriterion("renamezh in", values, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhNotIn(List<String> values) {
			addCriterion("renamezh not in", values, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhBetween(String value1, String value2) {
			addCriterion("renamezh between", value1, value2, "renamezh");
			return (Criteria) this;
		}

		public Criteria andRenamezhNotBetween(String value1, String value2) {
			addCriterion("renamezh not between", value1, value2, "renamezh");
			return (Criteria) this;
		}
	}

	public static class Criteria extends GeneratedCriteria {

		protected Criteria() {
			super();
		}
	}

	public static class Criterion {
		private String condition;

		private Object value;

		private Object secondValue;

		private boolean noValue;

		private boolean singleValue;

		private boolean betweenValue;

		private boolean listValue;

		private String typeHandler;

		public String getCondition() {
			return condition;
		}

		public Object getValue() {
			return value;
		}

		public Object getSecondValue() {
			return secondValue;
		}

		public boolean isNoValue() {
			return noValue;
		}

		public boolean isSingleValue() {
			return singleValue;
		}

		public boolean isBetweenValue() {
			return betweenValue;
		}

		public boolean isListValue() {
			return listValue;
		}

		public String getTypeHandler() {
			return typeHandler;
		}

		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}

		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}

		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}
}